﻿#include "CmdLineChartDialogIPLCalculation.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartDialogIPLCalculation::CmdLineChartDialogIPLCalculation()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartDialogIPLCalculation::~CmdLineChartDialogIPLCalculation()
    {
    }

    bool CmdLineChartDialogIPLCalculation::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartDialogIPLCalculation(
                m_data
        );
        return true;
    }

    void CmdLineChartDialogIPLCalculation::undo()
    {
        // TODO: undo
    }

    void CmdLineChartDialogIPLCalculation::redo()
    {
        execute();
    }

} // namespace PostCommand
